home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 1865 / 1865.xpi / chrome / adblockplus.jar / content / ui / settings.xul < prev    next >
Extensible Markup Language  |  2010-01-07  |  14KB  |  226 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!-- ***** BEGIN LICENSE BLOCK *****
  4.      - Version: MPL 1.1
  5.      -
  6.      - The contents of this file are subject to the Mozilla Public License Version
  7.      - 1.1 (the "License"); you may not use this file except in compliance with
  8.      - the License. You may obtain a copy of the License at
  9.      - http://www.mozilla.org/MPL/
  10.      -
  11.      - Software distributed under the License is distributed on an "AS IS" basis,
  12.      - WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  13.      - for the specific language governing rights and limitations under the
  14.      - License.
  15.      -
  16.      - The Original Code is Adblock Plus.
  17.      -
  18.      - The Initial Developer of the Original Code is
  19.      - Wladimir Palant.
  20.      - Portions created by the Initial Developer are Copyright (C) 2006-2009
  21.      - the Initial Developer. All Rights Reserved.
  22.      -
  23.      - Contributor(s):
  24.      -   Netscape Communications Corporation
  25.      -   Blake Ross <blake@cs.stanford.edu>
  26.      -   David Hyatt <hyatt@mozilla.org>
  27.      -   Joe Hewitt <hewitt@netscape.com>
  28.      -   Pierre Chanial <chanial@noos.fr>
  29.      -   Dean Tessman <dean_tessman@hotmail.com>
  30.      -
  31.      - ***** END LICENSE BLOCK ***** -->
  32.  
  33. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  34. <?xml-stylesheet href="chrome://global/skin/tree.css" type="text/css"?>
  35. <?xml-stylesheet href="chrome://adblockplus/skin/settings.css" type="text/css"?>
  36.  
  37. <!DOCTYPE dialog SYSTEM "chrome://adblockplus/locale/settings.dtd">
  38.  
  39. <dialog
  40.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  41.     title="&dialog.title;"
  42.     id="abpPreferencesWindow"
  43.     onload="init()"
  44.     onunload="cleanUp()"
  45.     ondialogaccept="applyChanges(); return true;"
  46.     ondialogextra2="treeView.startEditor(true)"
  47.     buttons="accept,cancel,extra2"
  48.     buttonlabelextra2="&add.label;..."
  49.     buttonaccesskeyextra2="&add.accesskey;"
  50.     width="600"
  51.     height="450"
  52.     persist="screenX screenY width height sizemode"
  53.     windowtype="abp:settings">
  54.  
  55. <script type="application/x-javascript;version=1.7" src="utils.js"/>
  56. <script type="application/x-javascript;version=1.7" src="settings.js"/>
  57. <script type="application/x-javascript;version=1.7" src="findbar.js"/>
  58.  
  59. <keyset id="adblockKeys">
  60.     <key id="synchsubscription-key" key="t" modifiers="accel"/>
  61.     <key id="synchsubscriptions-key" key="t" modifiers="accel,shift" command="synchsubscriptions-command"/>
  62.     <key id="import-key" key="i" modifiers="accel" command="import-command"/>
  63.     <key id="export-key" key="e" modifiers="accel" command="export-command"/>
  64.     <key id="selectall-key" key="a" modifiers="accel" command="selectall-command"/>
  65.     <key id="copy-key" key="c" modifiers="accel" command="copy-command"/>
  66.     <key id="cut-key" key="x" modifiers="accel" command="cut-command"/>
  67.     <key id="paste-key" key="v" modifiers="accel" command="paste-command"/>
  68.     <key id="find-key" key="f" modifiers="accel" command="find-command"/>
  69.     <key id="find-again-key" key="g" modifiers="accel" command="find-again-command"/>
  70.     <key id="find-previous-key" key="g" modifiers="accel,shift" command="find-previous-command"/>
  71.     <key id="find-again-key2" keycode="VK_F3" command="find-again-command"/>
  72.     <key id="find-previous-key2" keycode="VK_F3" modifiers="shift" command="find-previous-command"/>
  73.     <key id="edit-key" keycode="VK_ENTER"/>
  74.     <key id="remove-key" keycode="VK_DELETE"/>
  75.     <key id="addfilter-key" keycode="VK_INSERT"/>
  76.     <key id="moveup-key" keycode="VK_UP" modifiers="accel"/>
  77.     <key id="movedown-key" keycode="VK_DOWN" modifiers="accel"/>
  78.     <key id="movegroupup-key" keycode="VK_UP" modifiers="accel,shift"/>
  79.     <key id="movegroupdown-key" keycode="VK_DOWN" modifiers="accel,shift"/>
  80. </keyset>
  81.  
  82. <commandset id="abpCommands">
  83.     <command id="addsubscription-command" oncommand="editSubscription(null)"/>
  84.     <command id="synchsubscriptions-command" oncommand="synchAllSubscriptions(false)"/>
  85.     <command id="import-command" oncommand="importList()"/>
  86.     <command id="export-command" oncommand="exportList()"/>
  87.     <command id="selectall-command" oncommand="treeView.selection.selectAll()"/>
  88.     <command id="copy-command" oncommand="copyToClipboard()"/>
  89.     <command id="cut-command" oncommand="copyToClipboard(); removeFilters(false)"/>
  90.     <command id="paste-command" oncommand="pasteFromClipboard()"/>
  91.     <command id="remove-command" oncommand="removeFilters(true)"/>
  92.     <command id="find-command" oncommand="E('findbar').startFind(E('findbar').FIND_NORMAL)"/>
  93.     <command id="find-again-command" oncommand="E('findbar').onFindAgainCommand(false)"/>
  94.     <command id="find-previous-command" oncommand="E('findbar').onFindAgainCommand(true)"/>
  95. </commandset>
  96.  
  97. <popupset id="abpPopups">
  98.     <popup id="listitem-context" onpopupshowing="return fillContext()">
  99.         <menuitem id="context-synchsubscription" label="&context.synchsubscription.label;" oncommand="synchSubscription(event.shiftKey)" key="synchsubscription-key" />
  100.         <menuitem id="context-editsubscription" label="&context.editsubscription.label;..." oncommand="editFilter('subscription')" key="edit-key"/>
  101.         <menuitem id="context-edit" label="&context.edit.label;" oncommand="editFilter('filter')" key="edit-key"/>
  102.         <menuitem id="context-resethitcount" label="&context.resethitcount.label;..." oncommand="resetHitCounts(false)"/>
  103.         <menuitem id="context-moveup" label="&context.moveup.label;" oncommand="treeView.moveFilter(true)" key="moveup-key"/>
  104.         <menuitem id="context-movedown" label="&context.movedown.label;" oncommand="treeView.moveFilter(false)" key="movedown-key"/>
  105.         <menuseparator/>
  106.         <menuitem id="context-cut" label="&cut.label;" accesskey="&cut.accesskey;" command="cut-command" key="cut-key"/>
  107.         <menuitem id="context-copy" label="©.label;" accesskey="©.accesskey;" command="copy-command" key="copy-key"/>
  108.         <menuitem id="context-paste" label="&paste.label;" accesskey="&paste.accesskey;" command="paste-command" key="paste-key"/>
  109.         <menuitem id="context-remove" label="&remove.label;" accesskey="&remove.accesskey;" command="remove-command" key="remove-key"/>
  110.         <menuitem id="context-enable" label="&context.enable.label;" oncommand="toggleDisabled()"/>
  111.         <menuitem id="context-disable" label="&context.disable.label;" oncommand="toggleDisabled()"/>
  112.         <menuseparator/>
  113.         <menuitem id="context-movegroupup" label="&context.movegroupup.label;" oncommand="treeView.moveSubscription(true)" key="movegroupup-key"/>
  114.         <menuitem id="context-movegroupdown" label="&context.movegroupdown.label;" oncommand="treeView.moveSubscription(false)" key="movegroupdown-key"/>
  115.     </popup>
  116.     <popup id="treecols-context" onpopupshowing="fillViewPopup('context-')"/>
  117.     <tooltip id="tree-tooltip" onpopupshowing="return showTreeTooltip(event)"/>
  118. </popupset>
  119.  
  120. <toolbox id="menuToolbox">
  121.     <menubar id="menu" onpopupshowing="treeView.stopEditor(true, true);">
  122.         <menu id="filters-menu" label="&filters.label;" accesskey="&filters.accesskey;">
  123.             <menupopup id="filters-popup" onpopupshowing="fillFiltersPopup()">
  124.                 <menuitem id="addfilter" label="&add.label;..." accesskey="&add.accesskey;" key="addfilter-key" oncommand="treeView.startEditor(true)"/>
  125.                 <menuseparator/>
  126.                 <menuitem id="addsubscription" label="&addsubscription.label;..." accesskey="&addsubscription.accesskey;" command="addsubscription-command"/>
  127.                 <menuitem id="synchsubscriptions" label="&synchsubscriptions.label;" accesskey="&synchsubscriptions.accesskey;" key="synchsubscriptions-key" command="synchsubscriptions-command"/>
  128.                 <menuseparator/>
  129.                 <menuitem id="import" label="&import.label;..." accesskey="&import.accesskey;" key="import-key" command="import-command"/>
  130.                 <menuitem id="export" label="&export.label;..." accesskey="&export.accesskey;" key="export-key" command="export-command"/>
  131.                 <menuitem id="clearall" label="&clearall.label;..." accesskey="&clearall.accesskey;" oncommand="clearList()"/>
  132.                 <menuseparator/>
  133.                 <menuitem id="resethitcounts" label="&resethitcounts.label;..." accesskey="&resethitcounts.accesskey;" oncommand="resetHitCounts(true)"/>
  134.             </menupopup>
  135.         </menu>
  136.         <menu id="edit-menu" label="&edit.label;" accesskey="&edit.accesskey;">
  137.             <menupopup id="edit-popup" onpopupshowing="fillContext()">
  138.                 <menuitem id="cut" label="&cut.label;" accesskey="&cut.accesskey;" command="cut-command" key="cut-key"/>
  139.                 <menuitem id="copy" label="©.label;" accesskey="©.accesskey;" command="copy-command" key="copy-key"/>
  140.                 <menuitem id="paste" label="&paste.label;" accesskey="&paste.accesskey;" command="paste-command" key="paste-key"/>
  141.                 <menuitem id="remove" label="&remove.label;" accesskey="&remove.accesskey;" command="remove-command" key="remove-key"/>
  142.                 <menuseparator/>
  143.                 <menuitem id="find" label="&menu.find.label;..." accesskey="&menu.find.accesskey;" command="find-command" key="find-key"/>
  144.                 <menuitem id="find-again" label="&menu.findagain.label;" accesskey="&menu.findagain.accesskey;" command="find-again-command" key="find-again-key"/>
  145.             </menupopup>
  146.         </menu>
  147.         <menu id="view-menu" label="&view.label;" accesskey="&view.accesskey;">
  148.             <menupopup id="view-popup" onpopupshowing="fillViewPopup('')">
  149.                 <menuitem id="view-filter" label="&filter.column;" accesskey="&filter.accesskey;" type="checkbox" disabled="true"/>
  150.                 <menuitem id="view-slow" label="&slow.column;" accesskey="&slow.accesskey;" type="checkbox" oncommand="toggleColumn('col-slow')"/>
  151.                 <menuitem id="view-enabled" label="&enabled.column;" accesskey="&enabled.accesskey;" type="checkbox" oncommand="toggleColumn('col-enabled')"/>
  152.                 <menuitem id="view-hitcount" label="&hitcount.column;" accesskey="&hitcount.accesskey;" type="checkbox" oncommand="toggleColumn('col-hitcount')"/>
  153.                 <menuitem id="view-lasthit" label="&lasthit.column;" accesskey="&lasthit.accesskey;" type="checkbox" oncommand="toggleColumn('col-lasthit')"/>
  154.                 <menuseparator/>
  155.                 <menu id="sort-menu" label="&sort.label;" accesskey="&sort.accesskey;">
  156.                     <menupopup id="sort-popup">
  157.                         <menuitem id="sort-none" label="&sort.none.label;" accesskey="&sort.none.accesskey;" type="radio" name="sortColumn" oncommand="sortBy(null)"/>
  158.                         <menuitem id="sort-filter" label="&filter.column;" accesskey="&filter.accesskey;" type="radio" name="sortColumn" oncommand="sortBy('col-filter')"/>
  159.                         <menuitem id="sort-slow" label="&slow.column;" accesskey="&slow.accesskey;" type="radio" name="sortColumn" oncommand="sortBy('col-slow')"/>
  160.                         <menuitem id="sort-enabled" label="&enabled.column;" accesskey="&enabled.accesskey;" type="radio" name="sortColumn" oncommand="sortBy('col-enabled')"/>
  161.                         <menuitem id="sort-hitcount" label="&hitcount.column;" accesskey="&hitcount.accesskey;" type="radio" name="sortColumn" oncommand="sortBy('col-hitcount')"/>
  162.                         <menuitem id="sort-lasthit" label="&lasthit.column;" accesskey="&lasthit.accesskey;" type="radio" name="sortColumn" oncommand="sortBy('col-lasthit')"/>
  163.                         <menuseparator/>
  164.                         <menuitem id="sort-asc" label="&sort.ascending.label;" accesskey="&sort.ascending.accesskey;" type="radio" name="sortOrder" oncommand="setSortOrder('ascending')"/>
  165.                         <menuitem id="sort-desc" label="&sort.descending.label;" accesskey="&sort.descending.accesskey;" type="radio" name="sortOrder" oncommand="setSortOrder('descending')"/>
  166.                     </menupopup>
  167.                 </menu>
  168.             </menupopup>
  169.         </menu>
  170.         <menu id="options-menu" label="&options.label;" accesskey="&options.accesskey;">
  171.             <menupopup id="options-popup" onpopupshowing="fillOptionsPopup()">
  172.                 <menuitem id="abp-enabled" label="&enable.label;" accesskey="&enable.accesskey;" type="checkbox" oncommand="togglePref('enabled')"/>
  173.                 <menuseparator/>
  174.                 <menuitem id="frameobjects" label="&objecttabs.label;" accesskey="&objecttabs.accesskey;" type="checkbox" oncommand="togglePref('frameobjects')"/>
  175.                 <menuitem id="slowcollapse" label="&collapse.label;" accesskey="&collapse.accesskey;" type="checkbox" oncommand="togglePref('fastcollapse')"/>
  176.                 <menuseparator/>
  177.                 <menuitem id="showintoolbar" label="&showintoolbar.label;" accesskey="&showintoolbar.accesskey;" type="checkbox" oncommand="togglePref('showintoolbar')"/>
  178.                 <menuitem id="showinstatusbar" label="&showinstatusbar.label;" accesskey="&showinstatusbar.accesskey;" type="checkbox" oncommand="togglePref('showinstatusbar')"/>
  179.             </menupopup>
  180.         </menu>
  181.         <menu id="help-menu" label="&help.label;" accesskey="&help.accesskey;">
  182.             <menupopup id="help-popup">
  183.                 <menuitem id="gettingStartedLink" label="&gettingStarted.label;" accesskey="&gettingStarted.accesskey;" oncommand="abp.loadInBrowser('&gettingStarted.url;')"/>
  184.                 <menuitem id="faqLink" label="&faq.label;" accesskey="&faq.accesskey;" oncommand="abp.loadInBrowser('&faq.url;')"/>
  185.                 <menuitem id="filtersLink" label="&filterdoc.label;" accesskey="&filterdoc.accesskey;" oncommand="abp.loadInBrowser('&filterdoc.url;')"/>
  186.                 <menuseparator/>
  187.                 <menuitem id="aboutAbp" label="&about.label;..." accesskey="&about.accesskey;" oncommand="openAbout()"/>
  188.             </menupopup>
  189.         </menu>
  190.     </menubar>
  191. </toolbox>
  192.  
  193. <description id="introduction">
  194.     &description;
  195. </description>
  196.  
  197. <button id="applyButton" class="dialog-button" hidden="true" label="&apply.label;" accesskey="&apply.accesskey;" oncommand="applyChanges()"/>
  198.  
  199. <vbox id="listarea" flex="1">
  200.     <stack id="listStack" flex="1">
  201.         <tree id="list" persist="closedSubscriptions" flex="1" seltype="multiple" hidecolumnpicker="true" enableColumnDrag="true">
  202.             <treecols context="treecols-context">
  203.                 <treecol id="col-filter" label="&filter.column;" primary="true" flex="10" persist="width ordinal sortDirection hidden"/>
  204.                 <splitter class="tree-splitter"/>
  205.                 <treecol id="col-slow" label="!" flex="0" width="16" persist="width ordinal sortDirection hidden"/>
  206.                 <splitter class="tree-splitter"/>
  207.                 <treecol id="col-enabled" label="&enabled.column;" flex="0" persist="width ordinal sortDirection hidden"/>
  208.                 <splitter class="tree-splitter"/>
  209.                 <treecol id="col-hitcount" label="&hitcount.column;" flex="0" persist="width ordinal sortDirection hidden"/>
  210.                 <splitter class="tree-splitter"/>
  211.                 <treecol id="col-lasthit" label="&lasthit.column;" hidden="true" flex="4" persist="width ordinal sortDirection hidden"/>
  212.             </treecols>
  213.  
  214.             <treechildren tooltip="tree-tooltip" context="listitem-context" onclick="onListClick(event)" ondblclick="onListDblClick(event)" ondraggesture="onListDragGesture(event)"/>
  215.         </tree>
  216.         <hbox id="listEditorParent" align="center" hidden="true">
  217.             <textbox id="listEditor" class="tree-input" flex="1"/>
  218.             <image id="listEditorIcon" onclick="if (event.button == 0) treeView.stopEditor(false);" />
  219.         </hbox>
  220.     </stack>
  221.  
  222.     <findbar id="findbar"/>
  223. </vbox>
  224.  
  225. </dialog>
  226.